package club.dmyang.shardingspheredemo.service;

import club.dmyang.shardingspheredemo.dao.UserMapper;
import club.dmyang.shardingspheredemo.entity.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserServiceImpl implements UserService {

    @Autowired
    private UserMapper userMapper;
    @Override
    public int addOneUser(User user) {
        return userMapper.insert(user);
    }
}
